<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:p="http://primefaces.org/ui"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:pe="http://primefaces.org/ui/extensions">
    <h:head>
        <title>#{bundle.savprod}</title>
        <link href="./resources/css/default.css" rel="stylesheet" type="text/css" />
    </h:head>
    <h:body>
        <ui:composition>
            <h:form>
           <script type="text/javascript">  
                function handleSaveSavprod(xhr, status, args) {  
                    if(args.validationFailed || !args.success) {  
                        jQuery('#dialog').effect("shake", { times:3 }, 100);  
                    } else {  
                        dlgSavprod.hide();  
                    }  
                }
                
                function handleDeleteSavprod(xhr, status, args) {  
                    if(args.validationFailed || !args.success) {  
                        jQuery('#dialog').effect("shake", { times:3 }, 100);  
                    } else {  
                        dlcDeletesavprod.hide();  
                    }  
                }
                                
            </script>  

            <p:toolbar>
                <p:toolbarGroup align="left">
                    <p:commandButton value="#{bundle.btnNew}"
                                     icon="ui-icon-document"
                                     action="#{savprodBean.newData()}"
                                     rendered="#{menuBean.cekButtonAccess(161,'INS;')}"
                                     oncomplete="dlgSavprod.show()" update=":#{utilityBean.findClientId('displaySavprod')}" process="@this"> 
                        <pe:resetEditableValues for="displaySavprod"/>
                    </p:commandButton>

                    <p:commandButton value="#{bundle.btnOpen}" icon="ui-icon-disk" 
                                     rendered="#{menuBean.cekButtonAccess(161,'OPN;')}"
                                     update=":#{utilityBean.findClientId('displaySavprod')}"
                                     actionListener="#{savprodBean.openData()}"   
                                     oncomplete="dlgSavprod.show()"> 
                    </p:commandButton>

                    <p:commandButton value="#{bundle.btnDelete}" icon="ui-icon-trash" onclick="dlcDeletesavprod.show();" 
                                      rendered="#{menuBean.cekButtonAccess(161,'DEL;')}" /> 
                    
                    <p:commandButton type="push" value="#{bundle.btnPrint}" icon="ui-icon-print"/>
                </p:toolbarGroup>
            </p:toolbar>
            <br />
            <p:dataTable id="dtSavprods" value="#{savprodBean.savprods}" var="savprod" 
                         selection="#{savprodBean.selectedData}" selectionMode="single" rowIndexVar="noUrut"
                         rowKey="#{savprod.savproductId}" 
                         paginator="true" rows="10" paginatorPosition="bottom"  
                         paginatorTemplate="{CurrentPageReport} {PreviousPageLink} {NextPageLink} "
                         resizableColumns="true">
                
                <p:column style="width: 10px"  >
                    <f:facet name="header">No.</f:facet>
                    <h:outputText value="#{noUrut+1}" />
                </p:column>
                
                <p:column style="width: 15px;" sortBy="#{savprod.productNo}">
                    <f:facet name="header">#{bundle.productNo}</f:facet>
                    <h:outputText value="#{savprod.productNo}" />
                </p:column>
                
                <p:column style="width: 300px;" sortBy="#{savprod.productName}">
                    <f:facet name="header">#{bundle.globalName}</f:facet>
                    <h:outputText value="#{savprod.productName}" />
                </p:column>
                
                <p:column style="width: 225px;" >
                    <f:facet name="header">#{bundle.minFirstDeposit}</f:facet>
                    <h:outputText styleClass="numPos" value="#{savprod.minFirstDeposit}" >
                        <f:convertNumber groupingUsed="true" />
                    </h:outputText>
                </p:column>

                <p:column style="width: 225px;"  >
                    <f:facet name="header">#{bundle.minRegDeposit}</f:facet>
                    <h:outputText styleClass="numPos" value="#{savprod.minRegDeposit}" >
                        <f:convertNumber groupingUsed="true" />
                    </h:outputText>
                </p:column>
                
                <p:column style="width: 55px;"  >
                    <f:facet name="header">#{bundle.interestMethod}</f:facet>
                    <h:outputText value="#{constantaBean.getInterestMetodText(savprod.interestMethod)}" />
                </p:column>
                
                <p:column style="width: 225px;" >
                    <f:facet name="header">#{bundle.maxBalAdmFee}</f:facet>
                    <h:outputText styleClass="numPos" value="#{savprod.maxBalAdmFee}" >
                        <f:convertNumber groupingUsed="true" />
                    </h:outputText>
                </p:column>
                
                <p:column style="width: 225px;" >
                    <f:facet name="header">#{bundle.admFee}</f:facet>
                    <h:outputText styleClass="numPos" value="#{savprod.admFee}" >
                        <f:convertNumber groupingUsed="true" />
                    </h:outputText>
                </p:column>
                <p:column style="width: 225px;" >
                    <f:facet name="header">#{bundle.closingAdmFee}</f:facet>
                    <h:outputText styleClass="numPos" value="#{savprod.closingAdmFee}" >
                        <f:convertNumber groupingUsed="true" />
                    </h:outputText>
                </p:column>
            </p:dataTable>

           <p:confirmDialog message="#{bundle.confirmDelete}" appendToBody="true"  
                            header="#{bundle.confirmDeleteHeader}" severity="alert" widgetVar="dlcDeletesavprod" >
                <h:panelGrid cellspacing="0" cellpadding="0" styleClass="pComBtnD">
                    <f:facet name="footer">
                        <p:commandButton value="#{bundle.btnYes}" process="@this"
                                         update="dtSavprods" oncomplete="handleDeleteSavprod(xhr, status, args)"
                                 actionListener="#{savprodBean.delete()}" />  
                        <p:commandButton value="#{bundle.btnCancel}" onclick="dlcDeletesavprod.hide()" type="button" />  
                    </f:facet>
                </h:panelGrid>  
            </p:confirmDialog>
     
        </h:form> 
           
            <p:dialog header="#{bundle.savprod}" widgetVar="dlgSavprod" closable="true" dynamic="true" modal="true" appendToBody="true">
                <p:ajax event="close" listener="#{savprodBean.handleClose}"/>
                <h:form>
                <h:panelGrid id="displaySavprod" columns="2" styleClass="addELIT" >
                    <p:tabView activeIndex="0" rendered="#{savprodBean.unsaveData!=null}">
                        <p:tab title="#{bundle.tabproduct}" >
                            <h:panelGrid style="/*border:1px solid blue;*/" columns="3" cellpadding="0" cellspacing="5">
                                
                                <p:outputLabel value="#{bundle.productNo}" for="savprodProductNo1" /><h:outputLabel value=" : " />
                                <p:inputText value="#{savprodBean.unsaveData.productNo}" style="width: 15px;" 
                                                id="savprodProductNo1" label="Product No"
                                                requiredMessage="#{bundle.productNo} #{bundle.requiredInput}"
                                                required="true" />
                                
                                <p:outputLabel value="#{bundle.globalName}" for="savprodProductName1" /><h:outputLabel value=" : " />
                                <p:inputText value="#{savprodBean.unsaveData.productName}" style="width: 150px;"
                                                id="savprodProductName1" label="#{bundle.globalName}"
                                                requiredMessage="#{bundle.globalName} #{bundle.requiredInput}"
                                                required="true" />

                                <p:outputLabel value="#{bundle.minFirstDeposit}" for="savprodminFirstDeposit1" /><h:outputLabel value=" : " />
                                <pe:inputNumber decimalSeparator="." thousandSeparator="," maxValue="99999999999999999999.99" minValue="0" 
                                            styleClass="money" value="#{savprodBean.unsaveData.minFirstDeposit}" style="width: 150px; text-align: right;"
                                            required="true" label="#{bundle.minFirstDeposit}" id="savprodminFirstDeposit1"
                                            requiredMessage="#{bundle.minFirstDeposit} #{bundle.requiredInput}" />
                                
                                <p:outputLabel value="#{bundle.minRegDeposit}" for="savprodminRegDeposit1"/><h:outputLabel value=" : " />
                                <pe:inputNumber decimalSeparator="." thousandSeparator="," maxValue="99999999999999999999.99" minValue="0" 
                                        styleClass="money" value="#{savprodBean.unsaveData.minRegDeposit}" label="#{bundle.minRegDeposit}"
                                                id="savprodminRegDeposit1" required="true" style="width: 150px; text-align: right;"
                                                requiredMessage="#{bundle.minRegDeposit} #{bundle.requiredInput}" />
                                
                                <h:outputLabel value="#{bundle.interestTax}" /><h:outputLabel value=" : " />
                                <p:selectOneMenu value="#{savprodBean.unsaveData.interestTaxId}" style="width: 150px" >
                                    <f:selectItems value="#{savprodBean.avaibleTax}" />
                                </p:selectOneMenu>

                                <p:outputLabel value="#{bundle.savtransIds}" for="savprodsavtransIds"/><h:outputLabel value=" : " />
                                <p:selectCheckboxMenu value="#{savprodBean.selectedSavtrans}" label="#{bundle.savtransIds}" style="width: 155px;" id="savprodsavtransIds">  
                                    <f:selectItems value="#{savprodBean.availableSavtrans}" />  
                                </p:selectCheckboxMenu>  
                                
                                <h:outputLabel value="#{bundle.interestMethod}" /><h:outputLabel value=" : " />
                                <p:selectOneMenu value="#{savprodBean.unsaveData.interestMethod}" style="width: 150px;">
                                    <f:selectItems value="#{savprodBean.avblIntmethod}" />
                                </p:selectOneMenu>
                                
                                <p:outputLabel for="savprodmaxBalAdmFee1" value="#{bundle.maxBalAdmFee}" /><h:outputLabel value=" : " />
                                <pe:inputNumber decimalSeparator="." thousandSeparator="," maxValue="99999999999999999999.99" minValue="0" 
                                        styleClass="money" value="#{savprodBean.unsaveData.maxBalAdmFee}" label="#{bundle.maxBalAdmFee}"
                                                id="savprodmaxBalAdmFee1" required="true" style="width: 150px; text-align: right;"
                                                requiredMessage="#{bundle.maxBalAdmFee} #{bundle.requiredInput}" />

                                <h:outputLabel value="#{bundle.admFee}" for="savprodadmFee1"/><h:outputLabel value=" : " />
                                <pe:inputNumber decimalSeparator="." thousandSeparator="," maxValue="99999999999999999999.99" minValue="0" 
                                    styleClass="money" value="#{savprodBean.unsaveData.admFee}" label="#{bundle.admFee}"
                                    id="savprodadmFee1" required="true" style="width: 150px; text-align: right;"
                                    requiredMessage="#{bundle.maxBalAdmFee} #{bundle.requiredInput}" />

                                <p:outputLabel value="#{bundle.closingAdmFee}" for="savprodclosingAdmFee1"/><h:outputLabel value=" : " />
                                <pe:inputNumber decimalSeparator="." thousandSeparator="," maxValue="99999999999999999999.99" minValue="0" 
                                        styleClass="money" value="#{savprodBean.unsaveData.closingAdmFee}" label="#{bundle.closingAdmFee}"
                                        id="savprodclosingAdmFee1" required="true" style="width: 150px; text-align: right;"
                                                requiredMessage="#{bundle.closingAdmFee} #{bundle.requiredInput}" />
                                
                                <p:outputLabel value="#{bundle.blokingofBalance}" for="savprodblokingofBalance" /><h:outputLabel value=" : " />
                                <pe:inputNumber decimalSeparator="." thousandSeparator="," maxValue="99999999999999999999.99" minValue="0" 
                                        styleClass="money" value="#{savprodBean.unsaveData.blockingOfBalance}" label="#{bundle.blokingofBalance}"
                                        id="savprodblokingofBalance" required="true" style="width: 150px; text-align: right;"
                                        requiredMessage="#{bundle.blokingofBalance} #{bundle.requiredInput}" />
                                                                
                            </h:panelGrid>
                        </p:tab>
                        
                        <p:tab title="#{bundle.intRate}" >
                            <pe:masterDetail id="savprodrateMD" selectLevelListener="#{selectLevelListener.handleNavigation}" style="width: 600px;">
                                <pe:masterDetailLevel level="1" levelLabel="#{bundle.savprodrate}">
                                    <p:outputPanel autoUpdate="true">
                                        <p:dataTable id="dtSavprodRates" var="prodetail" value="#{savprodBean.unsaveData.savprodrates}" rowIndexVar="noUrut2"
                                                     rendered="#{savprodBean.unsaveData != null}">
                                            <p:column style="width: 11px;">
                                                <f:facet name="header">No</f:facet>
                                                    <h:outputText value="#{noUrut2+1}" styleClass="numPos" >
                                                        <f:convertNumber groupingUsed="true"/>
                                                    </h:outputText>
                                            </p:column>
                                            
                                            <p:column style="width: 80px;">
                                                <f:facet name="header">#{bundle.fromAmont}</f:facet>
                                                <h:outputText value="#{prodetail.fromAmount}" styleClass="numPos" >
                                                    <f:convertNumber groupingUsed="true"/>
                                                </h:outputText>
                                            </p:column>

                                            <p:column style="width:80px">
                                                <f:facet name="header">#{bundle.toAmont}</f:facet>
                                                <h:outputText value="#{prodetail.toAmount}" styleClass="numPos" >
                                                    <f:convertNumber groupingUsed="true"/>
                                                </h:outputText>
                                            </p:column>

                                            <p:column style="width:80px">
                                                <f:facet name="header">#{bundle.interestRate}</f:facet>
                                                <h:outputText value="#{prodetail.interestRate}" styleClass="numPos" >
                                                    <f:convertNumber groupingUsed="true"/>
                                                </h:outputText>
                                            </p:column>

                                            <p:column style="width:80px">
                                                <f:facet name="header">Actions</f:facet>
                                                    <p:commandLink value="Add" actionListener="#{savprodBean.newDetail()}" >
                                                    <pe:selectDetailLevel contextValue="#{null}" preserveInputs="true"/>
                                                </p:commandLink><p:spacer width="3"/>

                                                <p:commandLink value="Edit" actionListener="#{savprodBean.editDetail(prodetail)}" disabled="#{prodetail.interestRate==null}">
                                                    <pe:selectDetailLevel contextValue="#{prodetail}" preserveInputs="true"/>
                                                </p:commandLink><p:spacer width="3"/>

                                                <p:commandLink value="Del" actionListener="#{savprodBean.handleRemoveDetail}" disabled="#{prodetail.interestRate==null}">
                                                    <p:collector value="#{prodetail}" removeFrom="#{savprodBean.unsaveData.savprodrates}" />  
                                                </p:commandLink>
                                            </p:column>
                                        </p:dataTable>
                                    </p:outputPanel>
                                </pe:masterDetailLevel>
                                
                                <pe:masterDetailLevel level="2" levelLabel="Add/edit" contextVar="prodetail" >
                                    <h:panelGrid id="frmSavprodratedetail" columns="3" border="0" cellpadding="0" cellspacing="5" >
                                        <p:outputLabel value= "#{bundle.fromAmont}" for="savprodrateFromAmount"/><h:outputLabel value=":"/>
                                        <pe:inputNumber decimalSeparator="." thousandSeparator="," maxValue="99999999999999999999.99" minValue="0" 
                                            value="#{savprodBean.unsaveDetail.fromAmount}" style="width: 150px; text-align: right;" styleClass="money" 
                                            id="savprodrateFromAmount" required="true" label="#{bundle.fromAmont}" 
                                            requiredMessage="#{bundle.fromAmont} #{bundle.requiredInput}" />
                                        
                                        <p:outputLabel value= "#{bundle.toAmont}" for="savprodrateToAmount"/><h:outputLabel value=":"/>
                                        <pe:inputNumber decimalSeparator="." thousandSeparator="," maxValue="99999999999999999999.99" minValue="0" 
                                                styleClass="money" value="#{savprodBean.unsaveDetail.toAmount}" style="width: 150px; text-align: right;"
                                                id="savprodrateToAmount" required="true" label="#{bundle.toAmont}"
                                                requiredMessage="#{bundle.toAmont} #{bundle.requiredInput}" />
                                        
                                        <p:outputLabel value= "#{bundle.interestRate}" for="savprodrateInterestRate"/><h:outputLabel value=":"/>
                                        <pe:inputNumber decimalSeparator="." thousandSeparator="," maxValue="999.99" minValue="0" 
                                                            symbol=" %" symbolPosition="s"
                                                styleClass="percent" value="#{savprodBean.unsaveDetail.interestRate}" style="width: 150px; text-align: right;"
                                                id="savprodrateInterestRate" required="true" label="#{bundle.interestRate}"
                                                  requiredMessage="#{bundle.interestRate} #{bundle.requiredInput}" />
                                    </h:panelGrid>
                                    
                                    <h:panelGrid cellpadding="0" >
                                        <f:facet name="footer">  
                                            <p:commandButton value="Back" icon="ui-icon ui-icon-arrowthick-1-w" process="@this">
                                                <pe:resetEditableValues for="frmSavprodratedetail"/>  
                                                <pe:selectDetailLevel step="-1"/>
                                            </p:commandButton>
                                            
                                            <p:commandButton value="#{bundle.btnSave}" icon="ui-icon-disk" actionListener="#{savprodBean.saveDetail()}"/>
                                            
                                            <p:commandButton value="#{bundle.btnNew}" icon="ui-icon-document" actionListener="#{savprodBean.newDetail()}"  
                                                             process="@this" update="frmSavprodratedetail">
                                                <pe:resetEditableValues for="frmSavprodratedetail"/>  
                                            </p:commandButton>  
                                            
                                        </f:facet>
                                    </h:panelGrid>
                                    
                                </pe:masterDetailLevel>
                            </pe:masterDetail>
                        </p:tab>
                                                
                        <p:tab title="#{bundle.savprodcompul}" >
                            <pe:masterDetail id="savprodcompulMD" selectLevelListener="#{selectLevelListener.handleNavigation}" style="width: 600px;">
                                <pe:masterDetailLevel level="1" levelLabel="#{bundle.savprodcompul}">
                                    <p:outputPanel autoUpdate="true">
                                        <p:dataTable id="dtSavprodcompuls" var="compul" value="#{savprodBean.unsaveData.savprodcompuls}" rowIndexVar="noUrut3" 
                                                     rendered="#{savprodBean.unsaveData != null}">
                                            <p:column style="width: 11px;">
                                                <f:facet name="header">No</f:facet>
                                                    <h:outputText value="#{noUrut3+1}" styleClass="numPos" >
                                                        <f:convertNumber groupingUsed="true"/>
                                                    </h:outputText>
                                            </p:column>
                                            
                                            <p:column style="width: auto;">
                                                <f:facet name="header">#{bundle.savprodcompul}</f:facet>
                                                <h:outputText value="#{savprodBean.selectItemValueOf(savprodBean.avaibleProd, compul.compulsavprodId)}" />
                                            </p:column>

                                            <p:column style="width:90px">
                                                <f:facet name="header">Actions</f:facet>
                                                <p:commandLink value="Add" actionListener="#{savprodBean.newCompul()}" >
                                                    <pe:selectDetailLevel contextValue="#{null}" preserveInputs="true"/>
                                                </p:commandLink><p:spacer width="3"/>

                                                <p:commandLink value="Edit" actionListener="#{savprodBean.editCompul(compul)}" disabled="#{compul.compulsavprodId==null}">
                                                    <pe:selectDetailLevel contextValue="#{compul}" preserveInputs="true"/>
                                                </p:commandLink><p:spacer width="3"/>

                                                <p:commandLink value="Del" actionListener="#{savprodBean.handleRemoveCompul}" disabled="#{compul.compulsavprodId==null}">
                                                    <p:collector value="#{compul}" removeFrom="#{savprodBean.unsaveData.savprodcompuls}" />  
                                                </p:commandLink>
                                            </p:column>
                                        </p:dataTable>
                                    </p:outputPanel>
                                </pe:masterDetailLevel>
                                
                                <pe:masterDetailLevel level="2" levelLabel="Add/edit" contextVar="compul" >
                                    <h:panelGrid id="frmSavprodcompul" columns="3" border="0" cellpadding="0" cellspacing="5" >
                                        <h:outputLabel value= "#{bundle.savprodcompul}" /><h:outputLabel value=":"/>
                                        <p:selectOneMenu value="#{savprodBean.prodcompulId}" style="width: 170px;" >
                                            <f:selectItems value="#{savprodBean.avaibleProd}" />
                                        </p:selectOneMenu>
                                    </h:panelGrid>
                                    
                                    <h:panelGrid cellpadding="0" >
                                        <f:facet name="footer">  
                                            <p:commandButton value="Back" icon="ui-icon ui-icon-arrowthick-1-w" process="@this">
                                                <pe:resetEditableValues for="frmSavprodcompul"/>  
                                                <pe:selectDetailLevel step="-1"/>
                                            </p:commandButton>
                                            
                                            <p:commandButton value="#{bundle.btnSave}" icon="ui-icon-disk" actionListener="#{savprodBean.saveCompul()}"/>
                                            
                                            <p:commandButton value="#{bundle.btnNew}" icon="ui-icon-document" actionListener="#{savprodBean.newCompul()}"  
                                                             process="@this" update="frmSavprodcompul">
                                                <pe:resetEditableValues for="frmSavprodcompul"/>  
                                            </p:commandButton>  
                                            
                                        </f:facet>
                                    </h:panelGrid>
                                    
                                </pe:masterDetailLevel>
                            </pe:masterDetail>
                        </p:tab>
                        
                        <p:tab title="#{bundle.tabproductDetail}">
                            <h:panelGrid columns="3" cellpadding="0" cellspacing="5">
                                <h:outputLabel value= "#{bundle.savingGlccnt}" /><h:outputLabel value=" : " />
                                <p:selectOneMenu value="#{savprodBean.savingGL}" style="width: 300px" converter="glaccnt" var="glacc1">
                                    <f:selectItem rendered="#{savprodBean.savingGL!=null}" itemLabel="#{savprodBean.savingGL.accountName}" itemValue="#{savprodBean.savingGL}" />
                                    <f:selectItems value="#{savprodBean.avblGL}" var="gl" itemLabel="#{gl.accountName}" itemValue="#{gl}" />
                                    <p:column>#{glacc1.accountNo}</p:column>
                                    <p:column>#{glacc1.accountName}</p:column>
                                </p:selectOneMenu>

                                <h:outputLabel value= "#{bundle.interestGlccnt}" /><h:outputLabel value=" : " />
                                <p:selectOneMenu value="#{savprodBean.interestGL}" style="width: 300px" converter="glaccnt" var="glacc2">
                                    <f:selectItem rendered="#{savprodBean.interestGL!=null}" itemLabel="#{savprodBean.interestGL.accountName}" itemValue="#{savprodBean.interestGL}" />
                                    <f:selectItems value="#{savprodBean.avblGL}" var="gl" itemLabel="#{gl.accountName}" itemValue="#{gl}" />
                                    <p:column>#{glacc2.accountNo}</p:column>
                                    <p:column>#{glacc2.accountName}</p:column>
                                </p:selectOneMenu>

                                <h:outputLabel style="padding: 0 15px 0 0;" value= "#{bundle.admGlaccnt}" /><h:outputLabel value=" : " />
                                <p:selectOneMenu value="#{savprodBean.admGL}" style="width: 300px" converter="glaccnt" var="glacc3">
                                    <f:selectItem rendered="#{savprodBean.admGL!=null}" itemLabel="#{savprodBean.admGL.accountName}" itemValue="#{savprodBean.admGL}" />
                                    <f:selectItems value="#{savprodBean.avblGL}" var="gl" itemLabel="#{gl.accountName}" itemValue="#{gl}" />
                                    <p:column>#{glacc3.accountNo}</p:column>
                                    <p:column>#{glacc3.accountName}</p:column>
                                </p:selectOneMenu>

                                <h:outputLabel style="padding: 0 15px 0 0;" value= "#{bundle.intAccruedGlaccnt}" /><h:outputLabel value=" : " />
                                <p:selectOneMenu value="#{savprodBean.interestAccruedGL}" style="width: 300px" converter="glaccnt" var="glacc4">
                                    <f:selectItem rendered="#{savprodBean.interestAccruedGL!=null}" itemLabel="#{savprodBean.interestAccruedGL.accountName}" itemValue="#{savprodBean.interestAccruedGL}" />
                                    <f:selectItems value="#{savprodBean.avblGL}" var="gl" itemLabel="#{gl.accountName}" itemValue="#{gl}" />
                                    <p:column>#{glacc4.accountNo}</p:column>
                                    <p:column>#{glacc4.accountName}</p:column>
                                </p:selectOneMenu>

                                <h:outputLabel style="padding: 0 15px 0 0;" value= "#{bundle.closingGL}" /><h:outputLabel value=" : " />
                                <p:selectOneMenu value="#{savprodBean.closingGL}" style="width: 300px" converter="glaccnt" var="glacc5">
                                    <f:selectItem rendered="#{savprodBean.closingGL!=null}" itemLabel="#{savprodBean.closingGL.accountName}" itemValue="#{savprodBean.closingGL}" />
                                    <f:selectItems value="#{savprodBean.avblGL}" var="gl" itemLabel="#{gl.accountName}" itemValue="#{gl}" />
                                    <p:column>#{glacc5.accountNo}</p:column>
                                    <p:column>#{glacc5.accountName}</p:column>
                                </p:selectOneMenu>

                            </h:panelGrid>
                        </p:tab>
                        
                    </p:tabView>
                </h:panelGrid>

                <h:panelGrid cellpadding="0" styleClass="pComBtnSTDR">
                    <f:facet name="footer">
                        <p:commandButton value="#{bundle.btnSave}" icon="ui-icon-disk" actionListener="#{savprodBean.trySave()}"
                                         update=":#{utilityBean.findClientId('dtSavprods')}" id="submitSavprod"
                                         oncomplete="handleSaveSavprod(xhr, status, args)"/>
                        <p:commandButton value="#{bundle.btnClose}" oncomplete="reset();dlgSavprod.hide()" icon="ui-icon-document" process="@this">
                            <pe:resetEditableValues for="displaySavdepo"/>
                        </p:commandButton>
                    </f:facet>
                </h:panelGrid>
                
                <p:defaultCommand target="submitSavprod" /> 
                </h:form>        
            </p:dialog>
        
             
            
        </ui:composition>
    </h:body>
</html>